package Thread;
import java.util.Random;


public class subsubalgo extends Thread{
	public algo tot;
	Random rand = new Random();
	
	public subsubalgo(algo tot) {
		super();
		this.tot=tot;
	}

	synchronized public void sub_round(){
		tot.St=tot.St * Math.exp(tot.Drift + tot.Vsqrdt * rand.nextGaussian());
	}
	
	public void run() {
		sub_round();		
	}
}
